//    Copyright (C) Kherty.  All rights reserved.
using OpenLS.Core.Serialization;

namespace OpenLS.Spreadsheet
{
    public class AnchorClientData: IOfficeXmlSerializable
    {
        #region IOfficeXmlSerializable Members
        internal const string xmlName = "clientData";
        void IOfficeXmlSerializable.ReadXml(ReadContext context)
        {
            using (ReadContext c = context.Read(xmlName))
            {
                _fLocksWithSheet = c.GetOptionalBoolean("fLocksWithSheet", true);
                _fPrintsWithSheet = c.GetOptionalBoolean("fPrintsWithSheet", true);
            }
        }

        void IOfficeXmlSerializable.WriteXml(WriteContext context)
        {
            using (WriteContext c = context.Write(xmlName))
            {
                c.SetOptionalBoolean("fLocksWithSheet", _fLocksWithSheet, true);
                c.SetOptionalBoolean("fPrintsWithSheet", _fPrintsWithSheet, true);
            }
        }

        #endregion
        private bool _fLocksWithSheet = true;

        public bool LocksWithSheet
        {
            get { return _fLocksWithSheet; }
            set { _fLocksWithSheet = value; }
        }
        private bool _fPrintsWithSheet = true;

        public bool PrintsWithSheet
        {
            get { return _fPrintsWithSheet; }
            set { _fPrintsWithSheet = value; }
        }
	
	
    }
}
